package com.cskaoyan.wordmemorize.controller.admin;

import com.cskaoyan.wordmemorize.common.result.Result;
import com.cskaoyan.wordmemorize.dto.admin.OperateLogDTO;
import com.cskaoyan.wordmemorize.dto.admin.PageDTO;
import com.cskaoyan.wordmemorize.request.OperateLogPageRequest;
import com.cskaoyan.wordmemorize.service.AdminLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("admin/log/operation")
public class AdminLogController_whh {
    @Autowired
    AdminLogService adminLogService;

    @GetMapping("list")
    public Result getLogList(OperateLogPageRequest request) {
        PageDTO<OperateLogDTO> operateLogPage = adminLogService.getOperateLogPage(request);
        return Result.ok(operateLogPage);

    }
}
